package com.tongcao.cn.configcenter.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:tongcao
 * @Date:2018/8/27 19:48
 * Description:
 */
@Configuration
@DisconfFile(filename = "booker.properties")
public class BookerConfig {

    private String username;

    private String password;


    @DisconfFileItem(name = "userName", associateField = "userName")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "passWord", associateField = "passWord")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
